//
//  KLAccountView.h
//  KLShoppingList
//
//  Created by apple on 2017/8/23.
//  Copyright © 2017年 NetEaseExam. All rights reserved.
//

#import <UIKit/UIKit.h>

@class KLAccountView;

@protocol KLAccountViewDelegate <NSObject>

@optional
//全部选中或全部取消选中
- (void)allGoodsSelected:(KLAccountView *)accountView isSelected:(BOOL)allChoosed;
//结账
- (void)settleAccounts:(KLAccountView *)accountView;

@end


@interface KLAccountView : UIView

@property (nonatomic, assign) NSUInteger totalCount;
@property (nonatomic, assign) CGFloat totalPrice;
@property (nonatomic, assign) CGFloat totalTax;

@property (nonatomic, assign) BOOL allGoodsIsChoosed;

@property (nonatomic, weak) id<KLAccountViewDelegate>delegate;

+ (instancetype)totalAccountView;

@end
